import dash
from dash import html
import feffery_antd_components as fac
import feffery_utils_components as fuc

app = dash.Dash(__name__)

app.layout = html.Div(
    [
        html.Div(
            html.Pre(
                open('11.txt', encoding='utf-8').read()
            ),
            style={
                'overflowX': 'auto'
            }
        ),
        fac.AntdDivider(),
        fuc.FefferySyntaxHighlighter(
            codeString=open('11.txt', encoding='utf-8').read(),
            language='vim',
            codeStyle='a11y-dark'
        )
    ],
    style={
        'padding': '50px'
    }
)

if __name__ == '__main__':
    app.run_server(debug=True)
